package com.pro.common.api.cursor.sync.model.db;

import com.pro.common.api.cursor.sync.enums.EnumCursorValueType;
import com.pro.common.api.model.BaseConfigModel;
import com.pro.common.api.model.auth.IAdminClass;
import com.pro.framework.api.enums.IEnumToDbDbId;
import com.pro.framework.javatodb.annotation.JTDTable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "任务游标表")
@JTDTable(sequences = {
        "UNIQUE KEY `uk_task_key` (`task_key`)"
}, entityId = 90001)
public class SysTaskCursor extends BaseConfigModel implements IAdminClass, IEnumToDbDbId {

    @Schema(description = "任务唯一标识")
    private String taskKey;

    @Schema(description = "游标类型: long, timestamp, string")
    private EnumCursorValueType valueType;

    @Schema(description = "游标值") // 统一存为字符串
    private String cursorValue;


}
